package com.iraeta.entity.main;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

/**
 * erp_rdrecord_sc
 * @author 
 */
public class ErpRdrecordSc implements Serializable {
    private Long autoid;

    private Long id;

    private String cinvcode;

    private BigDecimal iquantity;

    private BigDecimal iunitcost;

    private BigDecimal iprice;

    private String ccode;

    private String cmaker;

    private Date ddate;

    private String cmocode;

    private String cwhname;

    private static final long serialVersionUID = 1L;

    public Long getAutoid() {
        return autoid;
    }

    public void setAutoid(Long autoid) {
        this.autoid = autoid;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCinvcode() {
        return cinvcode;
    }

    public void setCinvcode(String cinvcode) {
        this.cinvcode = cinvcode;
    }

    public BigDecimal getIquantity() {
        return iquantity;
    }

    public void setIquantity(BigDecimal iquantity) {
        this.iquantity = iquantity;
    }

    public BigDecimal getIunitcost() {
        return iunitcost;
    }

    public void setIunitcost(BigDecimal iunitcost) {
        this.iunitcost = iunitcost;
    }

    public BigDecimal getIprice() {
        return iprice;
    }

    public void setIprice(BigDecimal iprice) {
        this.iprice = iprice;
    }

    public String getCcode() {
        return ccode;
    }

    public void setCcode(String ccode) {
        this.ccode = ccode;
    }

    public String getCmaker() {
        return cmaker;
    }

    public void setCmaker(String cmaker) {
        this.cmaker = cmaker;
    }

    public Date getDdate() {
        return ddate;
    }

    public void setDdate(Date ddate) {
        this.ddate = ddate;
    }

    public String getCmocode() {
        return cmocode;
    }

    public void setCmocode(String cmocode) {
        this.cmocode = cmocode;
    }

    public String getCwhname() {
        return cwhname;
    }

    public void setCwhname(String cwhname) {
        this.cwhname = cwhname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ErpRdrecordSc)) return false;
        ErpRdrecordSc that = (ErpRdrecordSc) o;
        return autoid.equals(that.autoid) && id.equals(that.id) && cinvcode.equals(that.cinvcode)
                && Objects.equals(iquantity, that.iquantity) && Objects.equals(ccode, that.ccode) && Objects.equals(cwhname, that.cwhname)
                && Objects.equals(cmaker, that.cmaker) && Objects.equals(ddate, that.ddate) && Objects.equals(cmocode, that.cmocode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(autoid, id, cinvcode, iquantity, ccode, cmaker, ddate, cmocode, cwhname);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", autoid=").append(autoid);
        sb.append(", id=").append(id);
        sb.append(", cinvcode=").append(cinvcode);
        sb.append(", iquantity=").append(iquantity);
        sb.append(", iunitcost=").append(iunitcost);
        sb.append(", iprice=").append(iprice);
        sb.append(", ccode=").append(ccode);
        sb.append(", cmaker=").append(cmaker);
        sb.append(", ddate=").append(ddate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}